package com.itheima.dao.mapper;

import com.itheima.pojo.dto.ExamineDTO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ExamineMapper {
    /**
     * 新增检测项
     * @param examineDTO
     */
    @Insert("insert into examine_list(examine_number, examine_name, help_name, sex, type, classify, examine_price, cost_price, examine_text, extra_text, create_time)" +
            "values " +
            "(#{examineNumber}, #{examineName}, #{helpName}, #{sex}, #{type}, #{classify}, #{examinePrice}, #{costPrice}, #{examineText}, #{extraText}, #{createTime})"
    )
    void insert(ExamineDTO examineDTO);
}
